package com.hzncc.scaffold.controller.Front.Version;

import com.hzncc.scaffold.core.ResultT;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: DrunkBear
 * @Date: 2022-06-27 15:34
 * @Description: null
 */
@Api(tags = "前台接口-版本")
@RestController
@RequestMapping("/version")
@EnableConfigurationProperties()
public class VersionController {

    @Value("${project.version}")
    public String version;


    @GetMapping
    @ApiOperation("获取系统版本信息")
    public ResultT version() {
        return ResultT.success(version);
    }
}
